package com.suning.sawp.constants;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * 促销中心接口常量类<br>
 * 〈功能详细描述〉
 *
 * @author Wuxiao
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public class PromotionConstants {

	private PromotionConstants() {
	}

	/**
	 * 成功标志
	 */
	public static final String SUCCESS = "1";

	/**
	 * 成功标志
	 */

	public static final String FAILED = "0";
	/**
	 * 店+ 促销中心系统编码
	 */
	public static final String SYS_CODE_SNSAWP = "38";
	/**
	 * 促销活动查询类型 常用活动
	 */
	public static final String ACT_QUERY_TYPE_COMMON = "0";
	/**
	 * 促销活动查询类型 城市活动
	 */
	public static final String ACT_QUERY_TYPE_CITY = "1";

	/**
	 * 查询充值接口异常
	 */
	public static final String ERROR_CODE_QUERY_ORDER = "SAWP001";

	public static final String ERROR_MSG_QUERY_ORDER = "查询充值接口异常";

	/**
	 * 促销券来源 线上
	 */
	public static final int PROMOT_COUPON_RESCOUCE_ONLINE = 0;

	/**
	 * 促销券来源 线下 门店
	 */
	public static final int PROMOT_COUPON_RESCOUCE_OFFLINE_STORE = 1;

	/**
	 * 促销券来源 线下 超市
	 */
	public static final int PROMOT_COUPON_RESCOUCE_OFFLINE_MARKET = 2;

	/**
	 * 促销券来源 已旧换新
	 */
	public static final int PROMOT_COUPON_RESCOUCE_EXCHANGE = -1;

	/**
	 * 促销券来源 线下
	 */
	public static final int PROMOT_COUPON_RESCOUCE_OFFLINE = 1;

	/**
	 * 促销券来源 线上线下
	 */
	public static final int PROMOT_COUPON_RESCOUCE_ALL = 2;

	/**
	 * 促销中心城市编码前缀
	 */
	public static final String PROMOTION_CITY_PREFIX = "00000";

	public static final String PROMOTION_CITY_DEFAULT = "000001000173";

	public static final Map<String, String> COUPON_TYPES_MAP = new HashMap<String, String>();

	static {
		COUPON_TYPES_MAP.put("10001", "云券");
		COUPON_TYPES_MAP.put("10002", "限品类云券");
		COUPON_TYPES_MAP.put("10003", "店铺云券");
		COUPON_TYPES_MAP.put("10004", "易券");
		COUPON_TYPES_MAP.put("10005", "限品类易券");
		COUPON_TYPES_MAP.put("10006", "店铺易券");
		COUPON_TYPES_MAP.put("10007", "易付宝通用券");
		COUPON_TYPES_MAP.put("10008", "易付宝专用券");
		COUPON_TYPES_MAP.put("10009", "无敌券");
	}
}
